package org.jadapter.examples.foobar;

import org.jadapter.Transformer;


public class UsesTransformer {
    
    Transformer<Bar,Foo> fooBar;

    public UsesTransformer(Transformer<Bar, Foo> fooBar) {
        this.fooBar = fooBar;
    }

    public void doStuffUsingTransformer(Foo foo) {
        Bar bar = fooBar.transform(foo);
        // do stuff with bar
    }
}
